package com.zzxy.controller;

import com.zzxy.service.impl.TeacherServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.xml.ws.RequestWrapper;

@Controller
@RequestMapping("/teacher")
public class TeacherController {
    @Autowired
    private TeacherServiceImpl teacherService;

//    public TeacherServiceImpl getTeacherService() {
//        return teacherService;
//    }
//
//    public void setTeacherService(TeacherServiceImpl teacherService) {
//        this.teacherService = teacherService;
//    }

    @RequestMapping("/save")
    public void save(){
        teacherService.addTeacher();
    }
}
